﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _16_Jan_Practice
{
    class Program
    {
        static void Main(string[] args)
        {
            //Банкомат.
            string choise;
            Customer customer = new Customer();
            do
            {
                Console.WriteLine(@"What do you want you want to do?
C - create account; A - add funds to account; W - watch funds on account; L - close account; t - take all money");
            choise = Console.ReadLine();
                switch (choise)
                {
                    case "c":
                        customer.OpenAccount();
                        break;
                    case "a":
                        customer.SetMoney();
                        break;
                    case "w":
                        customer.ShowBalance();
                        break;
                    case "l":
                        customer.CloseAccount();
                        break;
                    case "t":
                        customer.TakeAllMoney();
                        break;
                }
            }
            while (choise == "c" || choise == "a" || choise == "w" || choise == "l" || choise == "t");
        }
    } 
}
